package com.example.back.controller.records;

import com.example.back.bean.records.PlayLog;
import com.example.back.dao.records.PlayLogDao;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "玩家游戏记录")
@RestController
@RequestMapping("playLog")
public class PlayLogController {

    @Autowired
    private PlayLogDao playLogDao;

    @ApiOperation(value = "获取所有玩家游戏记录",httpMethod = "GET")
    @RequestMapping("/getAllRecords")
    public List<PlayLog> getAll(){
        return playLogDao.getAllPlayRecords();
    }

}
